//1.引入express
const { request, response } = require('express')
const express = require('express')

//2.创建应用对象
const app = express()

//3.创建路由规则
//request是对请求报文的封装
//response是对响应报文的封装
app.get('/', (request, response) => {
    //设置相应
    response.send("hello")
})

//4.监听端口服务
app.listen(8080, () => {
    console.log("服务已经启动，8080 端口监听中")
})